<!DOCTYPE html>
<html>

<head>
    <include file="Share:meta" />
    <script src="../Public/plugins/jsFormat/jsFormat.js"></script>

</head>

<body oncontextmenu="self.event.returnValue=false" ondragstart="return false" class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <include file="Share:header" />
        <include file="Share:left" />
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>物品<small></small></h1>
                <ol class="breadcrumb">
                    <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                    <li class="active">新增、修改</li>
                </ol>
            </section>
            <!-- Main content -->
            <section class="content">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title"><empty name="Think.get.tid">新增产品<else />产品详细信息</empty></h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal" action="" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="tid" value="{$info.tid}"></input>
                        <div class="box-body">
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">物品编码</label>
                                <div class="col-sm-10">
                                    <input type="text" name="goods_code" id="inputEventCode" class="form-control" value="{$info.goods_code}" placeholder="" required="required" autocomplete="off">
                                </div>
                            </div>
                        
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">物品名称</label>
                                <div class="col-sm-10">
                                    <input type="text" name="goods_name" id="inputPrice" class="form-control" value="{$info.goods_name}" required="required" title="">
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">状态</label>
                                <div class="col-sm-10">
                                    <select name="status" id="status" class="form-control" required="required">
                                        <option value="1">启用</option>
                                        <option value="0">禁用</option>
                                    </select>
                                    <script type="text/javascript">
                                        $("#status").val('{$info.status}');
                                    </script>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">备注</label>
                                <div class="col-sm-10">
                                    <textarea name="remark" id="inputRemark" class="form-control" rows="3" >{$info.remark}</textarea>
                                </div>
                            </div>
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer col-sm-offset-2">
                            <button type="submit" class="btn btn-primary">
                                <eq name="info" value="">新增
                                    <else />保存</eq>
                            </button>
                            <a class="btn btn-warning" href="/Goods/glist" role="button">返回</a>
                        </div>
                        <br>
                        <!-- /.box-footer -->
                    </form>
                </div>
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <include file="Share:copyright" />
        <include file="Share:setting" />
    </div>
    <include file="Share:js" />
    <script type="text/javascript">
        $("#GoodsManager").addClass("active");
        $("#goods_list").addClass("active");

        $(function(){
      
        });
    </script>
</body>

</html>
